package com.sensetime.jv.exception;


import com.sensetime.jv.enums.StatusEnum;

public class CustomException extends RuntimeException {

    private StatusEnum status;

    public CustomException(String message) {
        super(message);
        this.status = StatusEnum.BAD_REQUEST;
    }

    public CustomException(StatusEnum status) {
        super(status.getDesc());
        this.status = status;
    }

    public CustomException(String message, StatusEnum status) {
        super(message);
        this.status = status;
    }


    public StatusEnum getStatus() {
        return status;
    }
}
